<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>onlineImageAccess</title>
</head>
<body>
<div id="result">gitee</div>
<img src="https://assets.gitee.com/assets/enterprises/202007/nonprofit-plan-9f4df9ae0451144be097e42b8db40c94.png" alt="gitee" id="gitee">
<script>
  let ele = document.getElementById('gitee');
  let loadImage;
  ele.onload = function () {
      loadImage = 'load image complete';
  };
  function getImageLoadResult() {
      return loadImage;
  }
</script>
</body>
</html>